import request from '@/utils/request2'
import qs from 'qs'

export function queryTopicList(data) {
  return request({
    url: '/topic/queryTopicList',
    method: 'get',
    params: data
  })
}

export function updateTopic(data,type) {
  return request({
    url: '/topic/updateTopic',
    method: 'post',
    data: type ? qs.stringify(data) : data
  })
}

export function addKey(data) {
  return request({
    url: '/topic/addKey',
    method: 'post',
    data: type ? qs.stringify(data) : data
  })
}

export function queryKey(data) {
  return request({
    url: '/topic/queryKey',
    method: 'get',
    params: data
  })
}


export function queryClassify(data) {
  return request({
    url: '/topic/queryClassify',
    method: 'get',
    params: data
  })
}

export function deleteClassIfy(data) {
  return request({
    url: '/topic/deleteClassIfy',
    method: 'get',
    params: data
  })
}

export function addClassify(data) {
  return request({
    url: '/topic/addClassify',
    method: 'post',
    data: data
  })
}

export function updateClassify(data) {
  return request({
    url: '/topic/updateClassify',
    method: 'post',
    data: data
  })
}